package com.syf.core.exception;

import org.assertj.core.util.Arrays;

import java.text.MessageFormat;

public class ToolKitNotFoundException extends RuntimeException {
    private static final MessageFormat formatter = new MessageFormat("未找到该工具包：[{0}]");

    public ToolKitNotFoundException(Class kitClazz) {
        this(kitClazz.getName());
    }

    public ToolKitNotFoundException(String kitClassName) {
        super(formatter.format(Arrays.array(kitClassName)));
    }
}
